/*
 * Copyright (c) 2019-2020, Dmitry (DiSlord) dislordlive@gmail.com
 * All rights reserved.
 *
 * This is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3, or (at your option)
 * any later version.
 *
 * The software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GNU Radio; see the file COPYING.  If not, write to
 * the Free Software Foundation, Inc., 51 Franklin Street,
 * Boston, MA 02110-1301, USA.
 */

#include <stdint.h>
#include "nanovna.h"

const uint8_t numfont16x22[] = {

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b0000000011110000),
  _BMP16(0b0000000111110000),
  _BMP16(0b0000001111110000),
  _BMP16(0b0000011111110000),
  _BMP16(0b0000111111110000),
  _BMP16(0b0000111111110000),
  _BMP16(0b0000111011110000),
  _BMP16(0b0000110011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000000011110000),
  _BMP16(0b0000001111111100),
  _BMP16(0b0000001111111100),
  _BMP16(0b0000001111111100),

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b0000000000011111),
  _BMP16(0b0000000000111111),
  _BMP16(0b0000000001111110),
  _BMP16(0b0000000011111100),
  _BMP16(0b0000000111111000),
  _BMP16(0b0000001111110000),
  _BMP16(0b0000011111100000),
  _BMP16(0b0000111111000000),
  _BMP16(0b0001111110000000),
  _BMP16(0b0011111100000000),
  _BMP16(0b0111111000000000),
  _BMP16(0b1111110000000000),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b0000000000011110),
  _BMP16(0b0000000000111110),
  _BMP16(0b0000000111111100),
  _BMP16(0b0000000111111000),
  _BMP16(0b0000000111111100),
  _BMP16(0b0000000001111110),
  _BMP16(0b0000000000011111),
  _BMP16(0b0000000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b0000000111111000),
  _BMP16(0b0000000111111000),
  _BMP16(0b0000001111111000),
  _BMP16(0b0000001111111000),
  _BMP16(0b0000011111111000),
  _BMP16(0b0000011111111000),
  _BMP16(0b0000111111111000),
  _BMP16(0b0000111101111000),
  _BMP16(0b0001111101111000),
  _BMP16(0b0001111001111000),
  _BMP16(0b0011111001111000),
  _BMP16(0b0011110001111000),
  _BMP16(0b0111110001111000),
  _BMP16(0b0111100001111000),
  _BMP16(0b1111100001111000),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b0000000001111000),
  _BMP16(0b0000000001111000),
  _BMP16(0b0000000001111000),
  _BMP16(0b0000000001111000),

  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111011111110000),
  _BMP16(0b1111111111111100),
  _BMP16(0b1111111111111110),
  _BMP16(0b1111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111011111110000),
  _BMP16(0b1111111111111100),
  _BMP16(0b1111111111111110),
  _BMP16(0b1111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b0000000000011111),
  _BMP16(0b0000000000111110),
  _BMP16(0b0000000001111100),
  _BMP16(0b0000000011111000),
  _BMP16(0b0000000111110000),
  _BMP16(0b0000000111100000),
  _BMP16(0b0000001111100000),
  _BMP16(0b0000001111000000),
  _BMP16(0b0000011111000000),
  _BMP16(0b0000011110000000),
  _BMP16(0b0000011110000000),
  _BMP16(0b0000111110000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),
  _BMP16(0b0000111100000000),

  _BMP16(0b0000011111100000),
  _BMP16(0b0001111111111000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111100000011110),
  _BMP16(0b0111100000011110),
  _BMP16(0b0111100000011110),
  _BMP16(0b0011110000111100),
  _BMP16(0b0001111111111000),
  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111100000011110),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111111),
  _BMP16(0b0111111111111111),
  _BMP16(0b0011111111111111),
  _BMP16(0b0000111111111111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111110),
  _BMP16(0b0111111111111110),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000111111110000),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000011111000000),
  _BMP16(0b0000011111000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0011111111111100),
  _BMP16(0b0011111111111100),
  _BMP16(0b0011111111111100),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000011),
  _BMP16(0b0000000000000111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000011111),
  _BMP16(0b0000000000111111),
  _BMP16(0b0000000001111111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0110000011001111),
  _BMP16(0b1111000111101111),
  _BMP16(0b0111101111001111),
  _BMP16(0b0011111110001111),
  _BMP16(0b0001111100001111),
  _BMP16(0b0001111100001111),
  _BMP16(0b0011111110001111),
  _BMP16(0b0111101111001111),
  _BMP16(0b1111000111101111),
  _BMP16(0b0110000011001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),
  _BMP16(0b0000000000001111),

  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000111110),
  _BMP16(0b1111000001111100),
  _BMP16(0b1111000011111000),
  _BMP16(0b1111000111110000),
  _BMP16(0b1111001111100000),
  _BMP16(0b1111011111000000),
  _BMP16(0b1111111110000000),
  _BMP16(0b1111111100000000),
  _BMP16(0b1111111100000000),
  _BMP16(0b1111111110000000),
  _BMP16(0b1111011111000000),
  _BMP16(0b1111001111100000),
  _BMP16(0b1111000111110000),
  _BMP16(0b1111000011111000),
  _BMP16(0b1111000001111100),
  _BMP16(0b1111000000111110),

  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111110000111111),
  _BMP16(0b1111110000111111),
  _BMP16(0b1111111001111111),
  _BMP16(0b1111111001111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b1111011111101111),
  _BMP16(0b1111011111101111),
  _BMP16(0b1111001111001111),
  _BMP16(0b1111001111001111),
  _BMP16(0b1111000110001111),
  _BMP16(0b1111000110001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),

  _BMP16(0b0000111111110000),
  _BMP16(0b0011111111111100),
  _BMP16(0b0111111111111110),
  _BMP16(0b0111110000111110),
  _BMP16(0b1111100000011111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000111111),
  _BMP16(0b1111000000111111),
  _BMP16(0b1111000000111111),
  _BMP16(0b1111000000000111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111100000011111),
  _BMP16(0b0111110000111111),
  _BMP16(0b0111111111111111),
  _BMP16(0b0011111111110111),
  _BMP16(0b0000111111100111),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000001000000),
  _BMP16(0b0000000011000000),
  _BMP16(0b0000000111000000),
  _BMP16(0b0000001111000000),
  _BMP16(0b0000011111000000),
  _BMP16(0b0000111111111111),
  _BMP16(0b0001111111111111),
  _BMP16(0b0011111111111111),
  _BMP16(0b0111111111111111),
  _BMP16(0b1111111111111111),
  _BMP16(0b0111111111111111),
  _BMP16(0b0011111111111111),
  _BMP16(0b0001111111111111),
  _BMP16(0b0000111111111111),
  _BMP16(0b0000011111000000),
  _BMP16(0b0000001111000000),
  _BMP16(0b0000000111000000),
  _BMP16(0b0000000011000000),
  _BMP16(0b0000000001000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0001111000111100),
  _BMP16(0b0011111101111110),
  _BMP16(0b0111001111100110),
  _BMP16(0b0110000111000011),
  _BMP16(0b1110000111000011),
  _BMP16(0b1100000110000011),
  _BMP16(0b1100000110000011),
  _BMP16(0b1100000110000011),
  _BMP16(0b1100000110000011),
  _BMP16(0b1100001110000111),
  _BMP16(0b1100001110000110),
  _BMP16(0b0110011111001110),
  _BMP16(0b0111111011111100),
  _BMP16(0b0011110001111000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000011101111100),
  _BMP16(0b0000011101111110),
  _BMP16(0b0000001101100110),
  _BMP16(0b0000001101100110),
  _BMP16(0b0000001101100110),
  _BMP16(0b0000001101100110),
  _BMP16(0b0000001101100110),
  _BMP16(0b0011101101111100),
  _BMP16(0b0111111101111110),
  _BMP16(0b1110011101100111),
  _BMP16(0b1100001101100011),
  _BMP16(0b1100001101100011),
  _BMP16(0b1100001101100011),
  _BMP16(0b1100001101100011),
  _BMP16(0b1100001101100011),
  _BMP16(0b1100001101100011),
  _BMP16(0b1110011101100111),
  _BMP16(0b0111111101111110),
  _BMP16(0b0011101101111100),

  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000001110000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0011111111111000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000000),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0000000000000000),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0000000000000000),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0000000000000000),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0111101111011110),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),

  _BMP16(0b0000000000000000), // n
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b1111000111110000),
  _BMP16(0b1111011111111100),
  _BMP16(0b1111111111111110),
  _BMP16(0b1111111000111110),
  _BMP16(0b1111110000011111),
  _BMP16(0b1111100000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),
  _BMP16(0b1111000000001111),

  _BMP16(0b0000000000000000), // p
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b0000000000000000),
  _BMP16(0b1111001111110000),
  _BMP16(0b1111011111111100),
  _BMP16(0b1111111111111110),
  _BMP16(0b1111111000011111),
  _BMP16(0b1111110000001111),
  _BMP16(0b1111100000000111),
  _BMP16(0b1111100000000111),
  _BMP16(0b1111100000000111),
  _BMP16(0b1111110000001111),
  _BMP16(0b1111111000011111),
  _BMP16(0b1111111111111110),
  _BMP16(0b1111011111111100),
  _BMP16(0b1111001111110000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
  _BMP16(0b1111000000000000),
};
